/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.sll.itintegration.catalogue.gui.data;

import java.util.List;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import se.sll.itintegration.catalogue.gui.entity.UserEntity;
import se.sll.service.catalogue.common.rest.model.user.CareUnitReference;

/**
 *
 * @author khaleddaham
 */
@SuppressWarnings("PMD.UnusedPrivateField")
@XmlRootElement
@Data
public class UpdateUserRequest {
    @NotNull
    private UserEntity.STATUS status;
    @NotEmpty
    private String hsaId;
    @NotNull
    private String realname;
    @NotEmpty
    private String email;
    private String hsaID;
    @Length(min = 8, message = "Lösenordet måste vara minst 8 tecken långt!")
    private String password;
    @NotEmpty
    private String role;
    private List<CareUnitReference> careUnitID;
}
